package com.autologistics.dao;

import java.util.List;

import com.autologistics.model.Media;
import com.autologistics.model.Playlist;


/**
 * @author Clarence
 *
 */
public interface MediaDao {
	public List<Media> listAll();
	public int add(Media media);
	public int delete(Media media);
	public Media get(Media media);
	public Media getById(int id);
	
	//下面支持分页功能
	public int allRow();
	public List<Media> queryForOnePage(final int offset, final int length);
	public Media queryMediaById(int mediaId);
	public void deleteMedia(int mediaId);
	public void updateMedia(Media media);
	public List<Media> searchMedia(String filename);
	
	//新增一个播放列表
	public void addPlayList(Playlist playlist);
}
